Component({
  properties: {},
  data: {},
  methods: {
    height: 0,
  },
  lifetimes: {
    attached() {
      const menuRect = wx.getMenuButtonBoundingClientRect();
      this.setData({
        height: menuRect.bottom
      })
    }
  }
});
